﻿<Activity mc:Ignorable="sap sap2010 sads" x:Class="Artezio.SP.WorkflowActivities.AddRoleAssignments"
 xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:mca="clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities"
 xmlns:p="wf://workflow.windows.net/$Current/$Activities/Artezio.SP.WorkflowActivities"
 xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
 xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
 xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"
 xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
 xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <x:Members>
    <x:Property Name="SecurableObjectApiPath" Type="InArgument(x:String)">
      <x:Property.Attributes>
        <RequiredArgumentAttribute />
      </x:Property.Attributes>
    </x:Property>
    <x:Property Name="BreakRoleInheritance" Type="InArgument(x:Boolean)" />
    <x:Property Name="CopyRoleAssigments" Type="InArgument(x:Boolean)" />
    <x:Property Name="RoleName" Type="InArgument(x:String)">
      <x:Property.Attributes>
        <RequiredArgumentAttribute />
      </x:Property.Attributes>
    </x:Property>
    <x:Property Name="PrincipalIds" Type="InArgument(scg:ICollection(x:Int32))">
      <x:Property.Attributes>
        <RequiredArgumentAttribute />
      </x:Property.Attributes>
    </x:Property>
    <x:Property Name="WebUrl" Type="InArgument(x:String)" />
  </x:Members>
  <sap2010:ExpressionActivityEditor.ExpressionActivityEditor>C#</sap2010:ExpressionActivityEditor.ExpressionActivityEditor>
  <sap2010:WorkflowViewState.IdRef>Artezio.SP.WorkflowActivities.AddRoleAssignments_1</sap2010:WorkflowViewState.IdRef>
  <TextExpression.NamespacesForImplementation>
    <sco:Collection x:TypeArguments="x:String">
      <x:String>System</x:String>
      <x:String>System.Collections.Generic</x:String>
      <x:String>System.Data</x:String>
      <x:String>System.Text</x:String>
      <x:String>Microsoft.Activities</x:String>
      <x:String>System.Collections.ObjectModel</x:String>
    </sco:Collection>
  </TextExpression.NamespacesForImplementation>
  <TextExpression.ReferencesForImplementation>
    <sco:Collection x:TypeArguments="AssemblyReference">
      <AssemblyReference>Microsoft.Activities</AssemblyReference>
      <AssemblyReference>Microsoft.Activities.Design</AssemblyReference>
      <AssemblyReference>Microsoft.SharePoint.DesignTime.Activities</AssemblyReference>
      <AssemblyReference>PresentationFramework</AssemblyReference>
      <AssemblyReference>System</AssemblyReference>
      <AssemblyReference>System.Activities</AssemblyReference>
      <AssemblyReference>System.Data</AssemblyReference>
      <AssemblyReference>System.Runtime.Serialization</AssemblyReference>
      <AssemblyReference>System.ServiceModel.Activities</AssemblyReference>
      <AssemblyReference>System.Xaml</AssemblyReference>
      <AssemblyReference>System.Xml</AssemblyReference>
      <AssemblyReference>System.Xml.Linq</AssemblyReference>
      <AssemblyReference>System.Core</AssemblyReference>
      <AssemblyReference>mscorlib</AssemblyReference>
      <AssemblyReference>Artezio.SP.WorkflowActivities</AssemblyReference>
    </sco:Collection>
  </TextExpression.ReferencesForImplementation>
  <Sequence DisplayName="AddRoleAssignments" sap2010:WorkflowViewState.IdRef="Sequence_1">
    <Sequence.Variables>
      <Variable x:TypeArguments="x:String" Name="currentWebUrl" />
      <Variable x:TypeArguments="x:Int32" Name="roleId" />
    </Sequence.Variables>
    <p:GetRoleDefinitionId sap2010:WorkflowViewState.IdRef="GetRoleDefinitionId_1">
      <p:GetRoleDefinitionId.RoleDefinitionId>
        <OutArgument x:TypeArguments="x:Int32">
          <mca:CSharpReference x:TypeArguments="x:Int32">roleId</mca:CSharpReference>
        </OutArgument>
      </p:GetRoleDefinitionId.RoleDefinitionId>
      <p:GetRoleDefinitionId.RoleName>
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">RoleName</mca:CSharpValue>
        </InArgument>
      </p:GetRoleDefinitionId.RoleName>
      <p:GetRoleDefinitionId.WebUrl>
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">WebUrl</mca:CSharpValue>
        </InArgument>
      </p:GetRoleDefinitionId.WebUrl>
    </p:GetRoleDefinitionId>
    <ForEach x:TypeArguments="x:Int32" sap2010:WorkflowViewState.IdRef="ForEach`1_4">
      <ForEach.Values>
        <InArgument x:TypeArguments="scg:IEnumerable(x:Int32)">
          <mca:CSharpValue x:TypeArguments="scg:IEnumerable(x:Int32)">PrincipalIds</mca:CSharpValue>
        </InArgument>
      </ForEach.Values>
      <ActivityAction x:TypeArguments="x:Int32">
        <ActivityAction.Argument>
          <DelegateInArgument x:TypeArguments="x:Int32" Name="id" />
        </ActivityAction.Argument>
        <Sequence DisplayName="AddRoleAssignment" sap2010:WorkflowViewState.IdRef="Sequence_12">
          <p:AddRoleAssignment sap2010:WorkflowViewState.IdRef="AddRoleAssignment_1">
            <p:AddRoleAssignment.BreakRoleInheritance>
              <InArgument x:TypeArguments="x:Boolean">
                <mca:CSharpValue x:TypeArguments="x:Boolean">BreakRoleInheritance</mca:CSharpValue>
              </InArgument>
            </p:AddRoleAssignment.BreakRoleInheritance>
            <p:AddRoleAssignment.CopyRoleAssigments>
              <InArgument x:TypeArguments="x:Boolean">
                <mca:CSharpValue x:TypeArguments="x:Boolean">CopyRoleAssigments</mca:CSharpValue>
              </InArgument>
            </p:AddRoleAssignment.CopyRoleAssigments>
            <p:AddRoleAssignment.PrincipalId>
              <InArgument x:TypeArguments="x:Int32">
                <mca:CSharpValue x:TypeArguments="x:Int32">id</mca:CSharpValue>
              </InArgument>
            </p:AddRoleAssignment.PrincipalId>
            <p:AddRoleAssignment.RoleDefinitionId>
              <InArgument x:TypeArguments="x:Int32">
                <mca:CSharpValue x:TypeArguments="x:Int32">roleId</mca:CSharpValue>
              </InArgument>
            </p:AddRoleAssignment.RoleDefinitionId>
            <p:AddRoleAssignment.SecurableObjectApiPath>
              <InArgument x:TypeArguments="x:String">
                <mca:CSharpValue x:TypeArguments="x:String">SecurableObjectApiPath</mca:CSharpValue>
              </InArgument>
            </p:AddRoleAssignment.SecurableObjectApiPath>
          </p:AddRoleAssignment>
          <Assign sap2010:WorkflowViewState.IdRef="Assign_1">
            <Assign.To>
              <OutArgument x:TypeArguments="x:Boolean">
                <mca:CSharpReference x:TypeArguments="x:Boolean">BreakRoleInheritance</mca:CSharpReference>
              </OutArgument>
            </Assign.To>
            <Assign.Value>
              <InArgument x:TypeArguments="x:Boolean">False</InArgument>
            </Assign.Value>
          </Assign>
        </Sequence>
      </ActivityAction>
    </ForEach>
    <sads:DebugSymbol.Symbol>d4IBRDpcU2hhcmVQb2ludFByb2plY3RzXFdvcmtmbG93QWN0aXZpdGllc1x0cnVua1xBcnRlemlvLlNQLldvcmtmbG93QWN0aXZpdGllc1xBY3Rpdml0aWVzXEFkZFJvbGVBc3NpZ25tZW50c1xBZGRSb2xlQXNzaWdubWVudHMueGFtbBE/A4kBDgIBAUQFVB0CAUxVBYcBDwIBAlELUU8CAV9MC0xRAgFWRwtHVgIBTVgLWGUCAUNfCYUBFAIBA2ALeiECARB7C4QBFAIBBG0RbVACATloEWhiAgEvdxF3ZQIBJXIRclQCARtjEWNkAgERggE3ggE8AgEPfhF+bAIBBQ==</sads:DebugSymbol.Symbol>
  </Sequence>
  <sap2010:WorkflowViewState.ViewStateManager>
    <sap2010:ViewStateManager>
      <sap2010:ViewStateData Id="GetRoleDefinitionId_1" sap:VirtualizedContainerService.HintSize="294,22" />
      <sap2010:ViewStateData Id="AddRoleAssignment_1" sap:VirtualizedContainerService.HintSize="242,22" />
      <sap2010:ViewStateData Id="Assign_1" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Sequence_12" sap:VirtualizedContainerService.HintSize="264,248">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="ForEach`1_4" sap:VirtualizedContainerService.HintSize="294,398" />
      <sap2010:ViewStateData Id="Sequence_1" sap:VirtualizedContainerService.HintSize="316,584">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Artezio.SP.WorkflowActivities.AddRoleAssignments_1" sap:VirtualizedContainerService.HintSize="356,664" />
    </sap2010:ViewStateManager>
  </sap2010:WorkflowViewState.ViewStateManager>
</Activity>